<template>
	<view class="index-header">
		<view class="iconfont icon-search icon"></view>
		<view class="middle">
			<view class="text">
				推荐
			</view>
			<view class="text">
				同城
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		}
	}
</script>

<style>
	.index-header {
		height: 35px;
		line-height: 35px;
		width: 100%;
		position: fixed;
		top: 25px;
		left: 0;
		margin: 0 auto;
		enable-background: inherit;
		z-index: 20;

	}

	.icon {
		position: absolute;
		left: 0;
		top: 0;
		color: white;
		width: 20%;
		text-align: center;
	}

	.middle {
		text-align: center;
		color: white;
	}

	.text {
		display: inline;
		margin: 0 10px;
	}
</style>
